package one.stand.entity.excel;

import lombok.Data;
import one.stand.util.Excel;
import org.springframework.util.StringUtils;

import java.util.Date;
import java.util.List;

@Data
public class OrdersExcelEntity {

    /**
     * 订单编号
     */
    @Excel(title = "订单编号",sort = 1)
    private String ordersNo;

    /**
     * 用户姓名
     */
    @Excel(title = "姓名",sort = 2)
    private String nickeName;

    /**
     * 联系方式
     */
    @Excel(title = "手机号码",sort = 3)
    private String phone;

    /**
     * 定位地址
     */
    @Excel(title = "地址",sort = 4)
    private String locationAddress;

    /**
     * 详细地址
     */
    private String detailedAddress;

    /**
     * 商品名称
     */
    @Excel(title = "商品名称",sort = 5)
    private String goodsName;

    /**
     *
     */
    @Excel(title = "订单价格",sort = 6)
    private Integer orderPrice;

    /**
     * 订单状态（1待付款，2待发货，3待收货，4已完成，5交易取消，6退款成功）
     */
    @Excel(title = "订单状态",sort = 7)
    private String orderState;


    @Excel(title = "商品规格",sort = 8)
    private Date specAttribute;

    @Excel(title = "订单来源",sort = 9)
//     assembleId ? '拼团订单' : '个人订单'
    private String assembleId;
    /**
     * 下单备注
     */
    @Excel(title = "下单备注",sort = 10)
    private String remark;

//    private String receiveName;
//
//    private String receivePhone;

    @Excel(title = "创建时间",sort = 10)
    private String createTime;

//    public String getNickeName() {
//        return StringUtils.isEmpty(nickeName)?"":new String(java.util.Base64.getDecoder().decode(nickeName));
//    }

}
